package com.tuling.code.jvm.classloader;

public class Demo1 {
	public static void main(String[] args) {
		//System.out.println(Demo1.class.getClassLoader());
		
		ClassLoader loader = Demo1.class.getClassLoader();
		while (loader != null) {
			System.out.println(loader);
			loader = loader.getParent();
		}
		//如果loader的parent等于 null ,表示它的parent就是BootstrapCLassloader ,跟加载器
		System.out.println(loader);
	}
}
